/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
  const { router, controller } = app;
  // router.get('/', controller.home.index);
  // router.get('/show', controller.home.show);
  // router.post('/create', controller.home.create);
  // router.patch('/update', controller.home.update);
  // router.delete('/destroy', controller.home.destroy);

  router.resources('user', '/user', controller.user);
  router.post('/user/login', controller.user.login);
};
